package cn.edu.lingnan.association.test;

import java.util.HashMap;

import cn.edu.lingnan.association.util.XMlParser;
import cn.edu.lingnan.association.util.XmlValidator;

public class testXML {
         
	public static void main(String[] args){
		
		String xmlPath = "database.conf.xml";
		String xsdPath = "database.conf.xsd";
		if(XmlValidator.validate(xmlPath, xsdPath)){
			HashMap<String,String> hm = XMlParser.parser(xmlPath);
			System.out.println(hm.get("driver"));
			System.out.println(hm.get("url"));
			System.out.println(hm.get("user"));
			System.out.println(hm.get("password"));
			}
	}
}
